package com.jsn.exception;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;

@Getter
@Setter
@JsonSerialize(using = SmartAuth2ExceptionSerializer.class)
public class SmartOAuth2Exception  extends OAuth2Exception {
    private String errorCode;
    public SmartOAuth2Exception(String msg ) {
        super(msg );
    }


    public SmartOAuth2Exception(String msg,String errorCode) {
        super(msg);
        this.errorCode = errorCode;
    }
}
